home *** CD-ROM | disk | FTP | other *** search
- /* */
- address command
- parse arg str fil'\'list
-
- proc = 'ram:'pragma('i')'.txed'
- if list = ''
- then do
- list = 'ram:'pragma('i')
- say 'grep >'list '-l' str fil
- 'grep >'list '-l' str fil
- if rc ~= 0 then exit rc
- end
-
-
- call open('grep',proc,'w')
- call writeln('grep','/* */')
- call writeln('grep','startup')
- call writeln('grep','''MENU 1 F "Find entry" "F 'str'"''')
- call writeln('grep',"'F "str"'")
- call writeln('grep','exit 0')
- call close('grep')
-
- call open('grep',list)
-
- do while ~eof('grep')
- file = readln('grep')
- file = strip(file)
- if file ~= ''
- then 'ed' file 'STARTUP' proc 'STICKY'
- end
-